<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/includes.jsp" %>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>业务员管理编辑</title>
	<!-- import css and js --> 
	<%@ include file="/common/metaInput.jsp" %>  
	<script src="${ctx}/js/jsp/comm.js" type="text/javascript"></script>
	<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
var basic_Url="${ctx}/basic/clerk";
	$(function(){
		$("#inputForm").validate({			   
			onsubmit: true,
			 /*执行ajaxsubmit  */ 
		    submitHandler: function(editform) {
		            
		        //alert(jsonInfo); 
		        try{			    		
		            url =  basic_Url+"/save.do";
		            var api = frameElement.api;
		        	var W = api.opener;
		        
		            getReturnMessage(url,"inputForm",W.searchAP);
		        }catch(e){alert(e);}
		    }
		 });
		if ('${flag}' == 'EDIT'){
			$("#code").attr("disabled","disabled");//禁用SELECT标签
		}
	
		
		
	});

function submitForm(param){
	
    //设置ajax全局同步
	jQuery.ajaxSettings.async = false;
    
  	$("#submitFlag").val(param);
    $("#inputForm").submit();
 }		
$(function(){
	$("#zd003ZhName").change(function(){
		$("#bizMnemonic").val(helpCode($("#zd003ZhName").val()));
	});
});
</script>

</head>

<body>

<form id="inputForm" action="" method="post">
<input type="hidden" id="id" name="id" value="${clerk.id}"/>
<input type="hidden" id="bizVersion" name="bizVersion" value="${clerk.bizVersion }"/>
<!-- 用于标识提交按钮 -->
<input type="hidden" id="submitFlag" value="" />
 <div class="pageContent" >
    <div class="panel">
         <table class="TableBlock" align="center">
         	<tr id="tr1">
           		<td nowrap="nowrap" width="20%">中文名:</td>
                <td width="30%">
                	<input type="text" id="zd003ZhName" name="zd003ZhName" value="${clerk.zd003ZhName}"  class="inp_width_98p required"/>
                </td>
                <td nowrap="nowrap" width="20%">英文名:</td>
                <td width="30%">
                	<input type="text" id="zd002EnName" name="zd002EnName" value="${clerk.zd002EnName}"  class="inp_width_98p"/>
                </td>
           </tr>
           <tr>
	           	<td nowrap>助记码:</td>
	              <td width="30%">
	                <input type="text" readonly="readonly" id="bizMnemonic" size="50%" name="bizMnemonic" " />
	              </td>
	              <td nowrap="nowrap" width="20%">QQ:</td>
				<td width="30%">
					<input class="inp_width_98p" type="text" id="zd006Qq" name="zd006Qq" value="${clerk.zd006Qq}"/>
				</td>
	        </tr>
           <tr>
           		<td nowrap="nowrap" width="20%">电话:</td>
				<td width="30%">
					<input class="inp_width_98p" type="text" id="zd004Phone" name="zd004Phone" value="${clerk.zd004Phone}"/>
				</td>
           		<td nowrap="nowrap" width="20%">手机:</td>
                <td width="30%">
                	<input class="inp_width_98p" type="text" id="zd005Mobel" name="zd005Mobel" value="${clerk.zd005Mobel}"/>
                </td>
           </tr>
           <tr>
           		<td nowrap="nowrap" width="20%">地址:</td>
                <td width="30%">
                	<input class="inp_width_98p" type="text" id="zd008Address" name="zd008Address" value="${clerk.zd008Address}"/>
                </td>
           		<td nowrap="nowrap" width="20%">邮箱:</td>
				<td width="30%">
					<input class="inp_width_98p" type="text" id="zd007Mail" name="zd007Mail" value="${clerk.zd007Mail}"/>
				</td>
           </tr>
      	</table>
        <div id="table1"> </div>               
    </div>
         <div class="formBar">
	        <ul>
		        <li><div class="buttonActive"><div class="buttonContent"><button type="button" id="btn_fb_save" onclick="submitForm()">保存</button></div></div></li>
		        <li><div class="button"><div class="buttonContent"><button type="button" onclick="CloseDialog()">关闭</button></div></div></li>
	        </ul>
        </div>    
    </div>
</form>
</body>
</html>
